
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using CNDreams.Server.Base;
using CNDreams.ServiceInterface;
using CNDreams.Biz.BizAccess;
using Serialize.Linq.Extensions;
using CNDreams.Entity;
using System.Linq.Expressions;
using Serialize.Linq.Nodes;
namespace CNDreams.Server 
{
	/// <summary>
	/// 菜单表
	/// </summary>
	public partial class ServiceSysMenu 
	{
		public IList<SysMenu> ListSysMenuByUserTypeID(Guid userTypeID)
		{
			return BizAccess.ListSysMenuByUserTypeID(userTypeID);
		}

		public IList<SysMenu> ListSysMenuBySysRoleID(Guid sysRoleId)
		{
			return BizAccess.ListSysMenuBySysRoleID(sysRoleId);
		}

		public IList<SysMenu> ListSysMenuByUserId(Guid userId)
		{
			return BizAccess.ListSysMenuByUserId(userId);
		}

		public IList<SysMenu> ListContain(IList<Guid> collection, ExpressionNode path)
		{
			return BizAccess.ListBy(x=>collection.Contains(x.ID));
		}
	}
}
		